package br.gov.dataprev.treinamento.ejb.remote;

import java.math.BigDecimal;

import javax.naming.Context;

import br.gov.dataprev.treinamento.ejb.service.remote.FreteServiceRemote;

public class FreteServiceTest extends RemoteBase {
	
	public static void main(String[] args) throws Exception {
		
		Context ctx = getLojaContext();
		
		FreteServiceRemote service = (FreteServiceRemote)ctx.lookup(FreteServiceRemote.EJB_NAME);
		
		BigDecimal frete = service.calcularFrete(criarPedidoTeste());
		
		System.out.println(frete);
		
	}

}
